package com.example.service;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by Administrator on 2017/5/8.
 * 通过注册中心调用service项目下的接口
 */
@FeignClient(name = "MyService")
public interface CallerService {

    @RequestMapping(value = "/ComputeController/add", method = RequestMethod.POST)
    public String RPCcall(@RequestParam("a") String a,@RequestParam("b") String b);
}
